home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_5660.txt < prev    next >
Text File  |  1994-03-01  |  533b  |  14 lines

  1. 5 ONERRORGOTO900
  2. 20 MODE8:DIM:r=0:h=0:c$=CHR$(5)
  3. 30 CLS:PRINT"2ãrh+ãar,a=û(h(2r-h))  r:radius";
  4. 40 s$="r":z=r:GOSUB500:r=z
  5. 45 CLS:PRINT"2ãrh+ãar,a=û(h(2r-h))  h:height";
  6. 50 s$="h":z=h:GOSUB500:h=z
  7. 60 a=h*(2*r-h):IFa<0 THEN300 ELSEa=SQRa
  8. 70 LOCATE0,1:PRINTc$;"Surface =";PI*r*(2*h+a);:z$=INPUT$(1,@):GOTO30
  9. 300 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):GOTO30
  10. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz<0 THEN500 ELSERETURN
  11. 900 IFERR=1 THENCLS:ONERRORGOTO0
  12. 910 IFERL=500 THENRESUME500
  13. 920 RESUME300
  14.